<?php
$dbms='mysql';     //数据库类型
$host='localhost'; //数据库主机名
$dbName='chuanshuo';    //使用的数据库
$user='root';      //数据库连接用户名
$pass='chuanshuo888';          //对应的密码
$dsn="$dbms:host=$host;dbname=$dbName";
try {
		$dbh = new PDO($dsn, $user, $pass); //初始化一个PDO对象
		//echo "连接成功<br/>";
		//你还可以进行一次搜索操作
		$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
		foreach ($dbh->query('SELECT * from attitude') as $row) {
			//print_r($row["zan"]); //你可以用 echo($GLOBAL); 来看到这些值
			$zan = $row["zan"];
			$cai = $row["cai"];
		}
		
		$dbh = null;
	} catch (PDOException $e) {
		die ("Error!: " . $e->getMessage() . "<br/>");
	}


?>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>点菜小助手（船说海鲜）</title>
    <meta name="viewport" content="initial-scale=1, maximum-scale=1">
    <link rel="shortcut icon" href="/favicon.ico">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">

    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm.min.css">
    <link rel="stylesheet" href="//g.alicdn.com/msui/sm/0.6.2/css/sm-extend.min.css">

  </head>
  <body>
    <div class="page-group">
        <div class="page page-current">
			<header class="bar bar-nav">
				 <a class="icon icon-left pull-left back"></a>
				<h1 class='title'>点餐小助手</h1>
			</header>
           <!-- 工具栏 -->
            <nav class="bar bar-tab">
                <a class="tab-item external active" href="index.php">
                    <span class="icon icon-home"></span>
                    <span class="tab-label">吃海鲜</span>
                </a>
                <a class="tab-item external " href="culture.php">
                    <span class="icon icon-star"></span>
                    <span class="tab-label">学文化</span>
                </a>
                <a class="tab-item external" href="discounts.php">
                    <span class="icon icon-emoji"></span>
                    <span class="tab-label">享优惠</span>
                </a>
            </nav>
			
			
			<div class="content">
			
				
					<div class="content-block">
							
					
							<div class="content-block-title">【点菜助手】选择您就餐的人数</div>
							<div class="card">
								<div class="card-content">
									<p class="buttons-row"><a href="2or3.html" class="button">2-3人用餐</a><a href="4or5.html" class="button">4-5人用餐</a><a href="6or8.html" class="button">6-8人用餐</a></p>
									<p class="buttons-row"><a href="9or12.html" class="button">9-12人用餐</a><a href="13or16.html" class="button">13-16人用餐</a><a href="#" class="button">船说欢迎您</a></p>
								</div>
							</div>	
							
							<div class="content-block-title">招牌一：鲍鱼（鲍汁扣/蒜蓉蒸）</div>
							<div class="card demo-card-header-pic">
								<div valign="bottom" class="card-header color-white no-border no-padding">
								  <img class='card-cover' src="https://www.cshxian.com/attachment/images/3/2019/03/oJp39NK4j8zMpkiPBkppM4Vmimpv4n.jpg" alt="">
								</div>
								<div class="card-content">
								  <div class="card-content-inner">
									<p>鲍鱼自古以来就是补而不燥顶级食材，营养丰富，中国也是食用鲍鱼最早的国家，早在清朝就有全鲍宴记录。船说改良鲍鱼做法与秘方，不仅保留鲜活鲍鱼肉质饱满，吃起来还能紧实而Q弹，仿佛能在舌尖跳舞！</p>
								  </div>
								</div>
								<div class="card-footer">
								  <a href="#" class="link cai">踩（<p><?php echo $cai?></P>）</a>
								  <a href="#" class="link zan">赞（<p><?php echo $zan?></P>）</a>
								</div>
							</div>
			
							<div class="content-block-title">招牌二：蛏子王（姜葱炒/口味炒）</div>
							<div class="card demo-card-header-pic">
								<div valign="bottom" class="card-header color-white no-border no-padding">
								  <img class='card-cover' src="https://www.cshxian.com/attachment/images/3/2019/01/Sp636YYZB0n3im900pN0mW9wByuTwo.jpg" alt="">
								</div>
								<div class="card-content">
								  <div class="card-content-inner">
									<p>竹蛏壳薄肉嫩且足部肌肉特别发达，吃起来嚼劲十足，肥厚鲜甜，专业宰杀，让蛏子毫无沙感！</p>
								  </div>
								</div>
								<div class="card-footer">
								  <a href="#" class="link cai">踩（<p><?php echo $cai?></P>）</a>
								  <a href="#" class="link zan">赞（<p><?php echo $zan?></P>）</a>
								</div>
							</div>
							
							<div class="content-block-title">招牌三：阿拉斯加蟹（蒜蓉蒸/冰镇）</div>
							<div class="card demo-card-header-pic">
								<div valign="bottom" class="card-header color-white no-border no-padding">
								  <img class='card-cover' src="https://www.cshxian.com/attachment/images/3/2019/03/q3g36Y2LzVu31CQjg3uJO0b9mc986u.jpg" alt="">
								</div>
								<div class="card-content">
								  <div class="card-content-inner">
									<p>阿拉斯加蟹又名帝王蟹，是海鲜中的“劳斯莱斯”，全部为俄罗斯与美国进口的活蟹，烹饪不用过多调料，享受鲜美，蟹腿肉超多，肉质饱满细腻，冰镇做法原汁原味，能品尝最自然鲜美的味道！</p>
								  </div>
								</div>
								<div class="card-footer">
								  <a href="#" class="link cai">踩（<p><?php echo $cai?></P>）</a>
								  <a href="#" class="link zan">赞（<p><?php echo $zan?></P>）</a>
								</div>
							</div>
							
							<div class="content-block-title">招牌四：罗氏虾（白灼/椒盐）</div>
							<div class="card demo-card-header-pic">
								<div valign="bottom" class="card-header color-white no-border no-padding">
								  <img class='card-cover' src="https://www.cshxian.com/attachment/images/3/2019/03/GotuTd7PTRl3uvdtH5naDeo23TP7n3.jpg" alt="">
								</div>
								<div class="card-content">
								  <div class="card-content-inner">
									<p>罗氏虾壳薄体肥，肉质鲜嫩，白灼做法的话是原汁原味，保持活虾的质感和鲜味，椒盐做法椒盐入味，酱汁味道正，连虾壳都味道非常！</p>
								  </div>
								</div>
								<div class="card-footer">
								  <a href="#" class="link cai">踩（<p><?php echo $cai?></P>）</a>
								  <a href="#" class="link zan">赞（<p><?php echo $zan?></P>）</a>
								</div>
							</div>
							
							<div class="content-block-title">招牌五：花螺（辣酒煮/冰镇）</div>
							<div class="card demo-card-header-pic">
								<div valign="bottom" class="card-header color-white no-border no-padding">
								  <img class='card-cover' src="https://www.cshxian.com/attachment/images/3/2019/03/X2o82YrolR8LQ5NLrNQL55FZyroLNI.jpg" alt="">
								</div>
								<div class="card-content">
								  <div class="card-content-inner">
									<p>花螺精巧秀丽、圆圆的口、尖尖的尾，光滑的表面是美丽的纹路，鲜嫩的肉藏在壳中，辣酒煮做法经过花雕酒的雕琢，酒香四溢，入口有味，肉质劲道。</p>
								  </div>
								</div>
								<div class="card-footer">
								  <a href="#" class="link cai">踩（<p><?php echo $cai?></P>）</a>
								  <a href="#" class="link zan">赞（<p><?php echo $zan?></P>）</a>
								</div>
							</div>
							
							<div class="content-block-title">招牌六：面包蟹（避风塘/蛋黄焗）</div>
							<div class="card demo-card-header-pic">
								<div valign="bottom" class="card-header color-white no-border no-padding">
								  <img class='card-cover' src="https://www.cshxian.com/attachment/images/3/2019/03/dlElC2gjJceLEl3ifLlMKKciW3iCli.jpg" alt="面包蟹">
								</div>
								<div class="card-content">
								  <div class="card-content-inner">
									<p>治愈系海鲜-面包蟹，不仅外表醇厚你，满腹黄金馅料，膏脂富盈，蟹黄满满，加上经典做法避风塘炒，满足感十足！</p>
								  </div>
								</div>
								<div class="card-footer">
								  <a href="#" class="link cai">踩（<p><?php echo $cai?></P>）</a>
								  <a href="#" class="link zan">赞（<p><?php echo $zan?></P>）</a>
								</div>
							</div>
							
							<div class="content-block-title">招牌七：锦绣青龙（蒜蓉蒸/刺身/煲粥）</div>
							<div class="card demo-card-header-pic">
								<div valign="bottom" class="card-header color-white no-border no-padding">
								  <img class='card-cover' src="https://www.cshxian.com/attachment/images/3/2019/03/HwMYN77M4RorxON3WYFWxri3g33446.jpg" alt="">
								</div>
								<div class="card-content">
								  <div class="card-content-inner">
									<p>又名七彩龙虾，色彩斑斓，非常没艳，可以三吃或者两吃，肉做刺身鲜嫩非常，壳煲粥丰富有味！</p>
								  </div>
								</div>
								<div class="card-footer">
								  <a href="#" class="link cai">踩（<p><?php echo $cai?></P>）</a>
								  <a href="#" class="link zan">赞（<p><?php echo $zan?></P>）</a>
								</div>
							</div>
							
							<div class="content-block-title">招牌八：花斑鱼（清蒸/红烧）</div>
							<div class="card demo-card-header-pic">
								<div valign="bottom" class="card-header color-white no-border no-padding">
								  <img class='card-cover' src="https://www.cshxian.com/attachment/images/3/2019/03/aJL3p41Ti1ZseiE2teES3SV93JJWSJ.jpg" alt="">
								</div>
								<div class="card-content">
								  <div class="card-content-inner">
									<p>花斑鱼是一种低脂、高蛋白的上等食用海鱼，被港澳广地区称为中国四大名鱼之一，清蒸后肉质肥美鲜嫩，深受食客赞誉！</p>
								  </div>
								</div>
								<div class="card-footer">
								  <a href="#" class="link cai">踩（<p><?php echo $cai?></P>）</a>
								  <a href="#" class="link zan">赞（<p><?php echo $zan?></P>）</a>
								</div>
							</div>
							
						
					</div>	
			</div>
        </div>
    </div>

    <script type='text/javascript' src='//g.alicdn.com/sj/lib/zepto/zepto.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm.min.js' charset='utf-8'></script>
    <script type='text/javascript' src='//g.alicdn.com/msui/sm/0.6.2/js/sm-extend.min.js' charset='utf-8'></script>
	<script src='js/shop.js'></script>
	<script>
$(function(){
	
	
});	
	
	</script>
	
  </body>
</html>